package poo.esempi;

import java.util.Scanner;

public class TokenizzazioneTramiteScanner {

	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String linea = sc.nextLine();

		Scanner input = new Scanner(linea);
		input.useDelimiter("[^a-zA-Z0-9]+");

		while (input.hasNext()) {
			String tk = input.next();
			System.out.println(tk);
		}
		input.close();
		sc.close();
	}

}
